import java.util.Scanner;
public class test426{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("Enter an amount (e.g., 11.56): ");
        String amountStr = scanner.nextLine();
        int dotIndex = amountStr.indexOf('.');
        String dollarsStr, centsStr;
        if (dotIndex != -1) {
            dollarsStr = amountStr.substring(0, dotIndex);
            centsStr = amountStr.substring(dotIndex + 1);
            if (centsStr.length() < 2) {
                centsStr += "0";
            } else if (centsStr.length() > 2) {
                centsStr = centsStr.substring(0, 2);
            }
        } else {
            dollarsStr = amountStr;
            centsStr = "00";
        }
        int dollars = Integer.parseInt(dollarsStr);
        int cents = Integer.parseInt(centsStr);
        System.out.println("Dollars: " + dollars);
        System.out.println("Cents: " + cents);
        scanner.close();
    }
}

